package com.wanfu.service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import com.wanfu.entity.Article;

public interface ArticleService {
    int add(Article article);
    int update(Article aritcle);
    int delete(int id);
    int select(int id);
    PageInfo<Article> listByTime(int pageNum, int pageSize);
    PageInfo<Article> listByCategory(int pageNum, int pageSize, int categoryId);
}
